import type { TableHeader , operationInstance } from "@/components/dzs-table/@types";

export const TABALE_HEADER: TableHeader[] = [
    {
        label: "标题",
        key: "title",
        width : "200px"
    },
    {
        label: "封面",
        key: "imgUrl",
        isSlot: true,
        width : "100px"
    },
    {
        label: "简介",
        key: "brfie",
        width : "500px"
    },
    {
        label: "阅读量",
        key: "reading",
    },
    {
        label: "分类",
        key: "typeName",
        width : "150px"
    },
    {
        label: "关键字",
        key: "keywords",
        width : "200px"
    },
    {
        label: "更多信息",
        key: "more_meta",
        props : {
            'show-overflow-tooltip' : true
        },
        width : "300px"
    },
    {
        label: "是否显示",
        key: "is_show",
        isSlot: true,
        width : "140px"
    },
    {
        label: "更新时间",
        key: "updatetime",
        width : "160px"
    },
    {
        label: "创建时间",
        key: "addtime",
        width : "160px"
    },
    {
        label: "创建人",
        key: "createByUser",
    },
];

export const operation : Array<operationInstance> = ['edit','delete'];
